DrawLine(Single,Single,Single,Single,Color,Single,Single[]) Method
In This Topic
Draws a line between two points, using the specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the line is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.
Syntax
'Declaration
Public Overloads Sub DrawLine( _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Drawing.Color, _
ByVal As System.Single, _
ByVal () As System.Single _
)
public void DrawLine(
System.float ,
System.float ,
System.float ,
System.float ,
System.Drawing.Color ,
System.float ,
System.float[]
)
Parameters
- x1
- The X coordinate of the first point.
- y1
- The Y coordinate of the first point.
- x2
- The X coordinate of the second point.
- y2
- The Y coordinate of the second point.
- lineColor
- The line color.
- lineWidth
- The line width.
- dashPattern
- The dash pattern.
See Also